class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.int :id
      t.int :rid
      t.string :capabilities
      t.int :stage
      t.string :status
      t.int :specified
      t.string :command
      t.int :pid
      t.int :interrupt
      t.string :logfile
      t.timestamp :updateTime
      t.timestamp :createTime
      t.int :sid

      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end
